﻿@ModelType IEnumerable(Of Soldata.Azox.Models.Snippet)

<table class="table table-bordered table-hover table-condensed">
    <colgroup>
        <col />
    </colgroup>
    <thead>
        <tr>
            <th>
                @Html.DisplayNameFor(Function(model) model.Title)
            </th>
            <th>@Html.DisplayNameFor(Function(model) model.Name)</th>
        </tr>
    </thead>
    <tbody>
        @For Each item In Model
            Dim currentItem = item
            @<tr>
                <td>
                    @Html.ActionLink(currentItem.Title, "edit", New With {.id = currentItem.Id}, New With {.title = "Изменить"})
                </td>
                <td>
                    @currentItem.Name
                </td>
            </tr>
        Next
    </tbody>
</table>
